package com.project.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.entity.ChargeRecordEntity;
import com.project.service.IChargeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("chargeRecord")
public class ChargeRecordController {
    @Autowired
    private IChargeRecordService chargeRecordService;

    @RequestMapping("findByList")
    public List<ChargeRecordEntity> findByList(Long id) {
        return chargeRecordService.findByList(id);
    }
}
